/**
 * Created by guangqiang on 2017/8/27.
 */

/** 设备信息 **/

import {Dimensions, Platform} from 'react-native'
// import DeviceInfo from 'react-native-device-info'
const deviceWidth = Dimensions.get('window').width;
const deviceHeight = Platform.OS === 'ios' ? Dimensions.get('window').height : Dimensions.get('window').height - 24;
export const deviceInfo = {
  // 设备宽度
  deviceWidth: deviceWidth,
  // 设备高度
  deviceHeight: deviceHeight,
  isIphoneX: Platform.OS === "ios" && (deviceHeight === 812 || deviceWidth === 812 || deviceHeight === 896 || deviceWidth === 896),
  // 设备系统
  deviceOS: Platform.OS,
  // 当前config: debug \ release
  mode: __DEV__ ? 'xdebug' : 'release'
}